package services

import (
	"genealogy/dao"
	"genealogy/models"
)

func GetAllBiography(Biography map[string]interface{}) (error, []models.Biography, int64) {
	err, BiographyData, total := dao.GetAllBiography(Biography)
	return err, BiographyData, total
}
func DelBiography(id string) error {
	err := dao.DelBiography(id)
	return err
}

func UpdateBiography(Biography models.Biography) error {
	err := dao.UpdateBiography(Biography)
	return err
}

func AddBiography(Biography models.Biography) error {
	err := dao.AddBiography(Biography)
	return err
}
